package model;

public class ChipsContainer
{
	protected int chips;
	
	public void setChips(int amount)
	{
		chips = amount;
	}
	
	public void addChips(int amount)
	{
		chips += amount;
	}
	
	public void removeChips(int amount)
	{
		chips -= amount;
		
		if (chips < 0)
		{
			chips = 0;
		}
	}

	public int getChips()
	{
		return chips;
	}
}
